CPP = $(wildcard *.cpp)
H = $(wildcard *.h)
OBJ = $(CPP:.cpp=.o)
EXE = sim
.PHONEY: all clean
all: $(EXE)
$(EXE): $(OBJ)
	g++ -pthread -Wall -o $(EXE) $(OBJ)
%.o: %.cpp $(H)
	g++ -pthread -Wall -I. -c $<
clean:
	rm -f $(OBJ)
